package physics;

public class Vector {
	double x, y, z;
	public Vector (double x, double y, double z){
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	public Vector add(Vector other){
		return new Vector (x + other.x, y + other.y, z + other.z);
	}
	
	public Vector multiply(Double scalar){
		return new Vector(x * scalar, y * scalar, z * scalar);
	}
}
